package sis.summer;

import static org.junit.Assert.assertEquals;

import java.util.Date;

import org.junit.Test;

import sis.studentinfo.Course;
import sis.studentinfo.DateUtil;
import sis.studentinfo.Session;
import sis.studentinfo.SessionTest;

public class SummerCourseSessionTest extends SessionTest{
	@Test
	public void testEndDate(){
		Date startDate = DateUtil.createDate(2003, 6, 9);
		Session session = createSession(new Course("ENGL", "200"),startDate);
		Date eightWeeksOut = DateUtil.createDate(2003, 8, 1);
		assertEquals(eightWeeksOut,session.getEndDate());
	}
	
	protected Session createSession(
			Course course,
			Date date){
		return SummerCourseSession.create(course, date);
	}
	
}
